/*
 * XML Type:  XDatetimeFrame
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XDatetimeFrame
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget;


/**
 * An XML XDatetimeFrame(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public interface XDatetimeFrame extends com.seedwill.xul.widget.XInput
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XDatetimeFrame.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xdatetimeframe155etype");
    
    /**
     * Gets array of all "dateTimeElement" elements
     */
    com.seedwill.xul.widget.XDateTimePicker[] getDateTimeElementArray();
    
    /**
     * Gets ith "dateTimeElement" element
     */
    com.seedwill.xul.widget.XDateTimePicker getDateTimeElementArray(int i);
    
    /**
     * Returns number of "dateTimeElement" element
     */
    int sizeOfDateTimeElementArray();
    
    /**
     * Sets array of all "dateTimeElement" element
     */
    void setDateTimeElementArray(com.seedwill.xul.widget.XDateTimePicker[] dateTimeElementArray);
    
    /**
     * Sets ith "dateTimeElement" element
     */
    void setDateTimeElementArray(int i, com.seedwill.xul.widget.XDateTimePicker dateTimeElement);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "dateTimeElement" element
     */
    com.seedwill.xul.widget.XDateTimePicker insertNewDateTimeElement(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "dateTimeElement" element
     */
    com.seedwill.xul.widget.XDateTimePicker addNewDateTimeElement();
    
    /**
     * Removes the ith "dateTimeElement" element
     */
    void removeDateTimeElement(int i);
    
    /**
     * Gets the "max" element
     */
    java.math.BigDecimal getMax();
    
    /**
     * Gets (as xml) the "max" element
     */
    org.apache.xmlbeans.XmlDecimal xgetMax();
    
    /**
     * True if has "max" element
     */
    boolean isSetMax();
    
    /**
     * Sets the "max" element
     */
    void setMax(java.math.BigDecimal max);
    
    /**
     * Sets (as xml) the "max" element
     */
    void xsetMax(org.apache.xmlbeans.XmlDecimal max);
    
    /**
     * Unsets the "max" element
     */
    void unsetMax();
    
    /**
     * Gets the "min" element
     */
    java.math.BigDecimal getMin();
    
    /**
     * Gets (as xml) the "min" element
     */
    org.apache.xmlbeans.XmlDecimal xgetMin();
    
    /**
     * True if has "min" element
     */
    boolean isSetMin();
    
    /**
     * Sets the "min" element
     */
    void setMin(java.math.BigDecimal min);
    
    /**
     * Sets (as xml) the "min" element
     */
    void xsetMin(org.apache.xmlbeans.XmlDecimal min);
    
    /**
     * Unsets the "min" element
     */
    void unsetMin();
    
    /**
     * Gets the "step" element
     */
    java.math.BigDecimal getStep();
    
    /**
     * Gets (as xml) the "step" element
     */
    org.apache.xmlbeans.XmlDecimal xgetStep();
    
    /**
     * True if has "step" element
     */
    boolean isSetStep();
    
    /**
     * Sets the "step" element
     */
    void setStep(java.math.BigDecimal step);
    
    /**
     * Sets (as xml) the "step" element
     */
    void xsetStep(org.apache.xmlbeans.XmlDecimal step);
    
    /**
     * Unsets the "step" element
     */
    void unsetStep();
    
    /**
     * Gets the "stepUnit" element
     */
    com.seedwill.xul.widget.XDatetimeFrame.StepUnit.Enum getStepUnit();
    
    /**
     * Gets (as xml) the "stepUnit" element
     */
    com.seedwill.xul.widget.XDatetimeFrame.StepUnit xgetStepUnit();
    
    /**
     * True if has "stepUnit" element
     */
    boolean isSetStepUnit();
    
    /**
     * Sets the "stepUnit" element
     */
    void setStepUnit(com.seedwill.xul.widget.XDatetimeFrame.StepUnit.Enum stepUnit);
    
    /**
     * Sets (as xml) the "stepUnit" element
     */
    void xsetStepUnit(com.seedwill.xul.widget.XDatetimeFrame.StepUnit stepUnit);
    
    /**
     * Unsets the "stepUnit" element
     */
    void unsetStepUnit();
    
    /**
     * An XML stepUnit(@).
     *
     * This is an atomic type that is a restriction of com.seedwill.xul.widget.XDatetimeFrame$StepUnit.
     */
    public interface StepUnit extends org.apache.xmlbeans.XmlString
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(StepUnit.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("stepunita9e2elemtype");
        
        org.apache.xmlbeans.StringEnumAbstractBase enumValue();
        void set(org.apache.xmlbeans.StringEnumAbstractBase e);
        
        static final Enum YEAR = Enum.forString("YEAR");
        static final Enum SEASON = Enum.forString("SEASON");
        static final Enum MONTH = Enum.forString("MONTH");
        static final Enum DAY = Enum.forString("DAY");
        static final Enum HOUR_24 = Enum.forString("HOUR24");
        static final Enum HOUR_12 = Enum.forString("HOUR12");
        static final Enum MINITUE = Enum.forString("MINITUE");
        static final Enum SECOND = Enum.forString("SECOND");
        
        static final int INT_YEAR = Enum.INT_YEAR;
        static final int INT_SEASON = Enum.INT_SEASON;
        static final int INT_MONTH = Enum.INT_MONTH;
        static final int INT_DAY = Enum.INT_DAY;
        static final int INT_HOUR_24 = Enum.INT_HOUR_24;
        static final int INT_HOUR_12 = Enum.INT_HOUR_12;
        static final int INT_MINITUE = Enum.INT_MINITUE;
        static final int INT_SECOND = Enum.INT_SECOND;
        
        /**
         * Enumeration value class for com.seedwill.xul.widget.XDatetimeFrame$StepUnit.
         * These enum values can be used as follows:
         * <pre>
         * enum.toString(); // returns the string value of the enum
         * enum.intValue(); // returns an int value, useful for switches
         * // e.g., case Enum.INT_YEAR
         * Enum.forString(s); // returns the enum value for a string
         * Enum.forInt(i); // returns the enum value for an int
         * </pre>
         * Enumeration objects are immutable singleton objects that
         * can be compared using == object equality. They have no
         * public constructor. See the constants defined within this
         * class for all the valid values.
         */
        static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
        {
            /**
             * Returns the enum value for a string, or null if none.
             */
            public static Enum forString(java.lang.String s)
                { return (Enum)table.forString(s); }
            /**
             * Returns the enum value corresponding to an int, or null if none.
             */
            public static Enum forInt(int i)
                { return (Enum)table.forInt(i); }
            
            private Enum(java.lang.String s, int i)
                { super(s, i); }
            
            static final int INT_YEAR = 1;
            static final int INT_SEASON = 2;
            static final int INT_MONTH = 3;
            static final int INT_DAY = 4;
            static final int INT_HOUR_24 = 5;
            static final int INT_HOUR_12 = 6;
            static final int INT_MINITUE = 7;
            static final int INT_SECOND = 8;
            
            public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
                new org.apache.xmlbeans.StringEnumAbstractBase.Table
            (
                new Enum[]
                {
                    new Enum("YEAR", INT_YEAR),
                    new Enum("SEASON", INT_SEASON),
                    new Enum("MONTH", INT_MONTH),
                    new Enum("DAY", INT_DAY),
                    new Enum("HOUR24", INT_HOUR_24),
                    new Enum("HOUR12", INT_HOUR_12),
                    new Enum("MINITUE", INT_MINITUE),
                    new Enum("SECOND", INT_SECOND),
                }
            );
            private static final long serialVersionUID = 1L;
            private java.lang.Object readResolve() { return forInt(intValue()); } 
        }
        
        /**
         * A factory class with static methods for creating instances
         * of this type.
         */
        
        public static final class Factory
        {
            public static com.seedwill.xul.widget.XDatetimeFrame.StepUnit newValue(java.lang.Object obj) {
              return (com.seedwill.xul.widget.XDatetimeFrame.StepUnit) type.newValue( obj ); }
            
            public static com.seedwill.xul.widget.XDatetimeFrame.StepUnit newInstance() {
              return (com.seedwill.xul.widget.XDatetimeFrame.StepUnit) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static com.seedwill.xul.widget.XDatetimeFrame.StepUnit newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (com.seedwill.xul.widget.XDatetimeFrame.StepUnit) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
            
            private Factory() { } // No instance of this class allowed
        }
    }
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.widget.XDatetimeFrame newInstance() {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.widget.XDatetimeFrame parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XDatetimeFrame parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.widget.XDatetimeFrame parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.widget.XDatetimeFrame) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
